<template>
    <div class="chenq">
        <div class="ld">
            <el-input placeholder="请输入教师名" v-model="teacher">
            </el-input>
            <el-button type="primary" icon="el-icon-search" @click="searchteacher">查询</el-button>
        </div>
        <div class="rd">
            <el-button type="primary" @click="addlise">添加</el-button>
            <el-button type="danger" @click="delnore">批量删除</el-button>
        </div>
    </div>
</template>

<script>
    import evevtBus from '@/untial/evevtBus'
    export default {
        data() {
            return {
                teacher: ''
            }
        },
        methods: {
            addlise(){
                this.$emit("addvisual");
            },
            delnore() {
                evevtBus.$emit("delbyids");
            },
            searchteacher() {
                this.$emit('searchteacher', this.teacher)
            },
        }
    }
</script>

<style lang="less" scoped>
    .chenq {
        padding: 20px 50px;
        background-color: white;
        display: flex;
        justify-content: space-between;

        .ld {
            display: flex;

            button {
                margin-left: 20px;
            }

        }
    }
</style>